<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>用户管理</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name= viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<script type="text/javascript" src="../js/jquery-2.1.1.min.js"></script>
		<link type="text/css" rel="stylesheet" href="../jquery-easyui-1.4.2/themes/default/easyui.css" />
		<link type="text/css" rel="stylesheet" href="../jquery-easyui-1.4.2/themes/icon.css" />
		<script type="text/javascript" src="../jquery-easyui-1.4.2/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../jquery-easyui-1.4.2/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript">
			function addTab(title,url){
				if($("#center").tabs("exists",title)){
					$("#center").tabs("select",title)
					var tab = $('#center').tabs('getSelected');  // 获取选择的面板
					$('#center').tabs('update', {
						tab: tab,
						closable:true,
						options: {}
					});

				}else{
					var i = 1;
					// 添加一个未选中状态的选项卡面板
					$('#center').tabs('add',{
						title: title,
						selected: true,
						closable:true,
						content: '<iframe id="log'+i+'" src="'+url+'" scrolling="auto" width="100%" height="100%" frameborder="0"></iframe>'
					});
					i = i+1;
				}

			}
		</script>
	</head>
	<body class="easyui-layout">   
	    <!-- <div data-options="region:'north',title:'North Title',split:true" style="height:100px;"></div>    -->
	    <div data-options="region:'west',title:'West',split:true" style="width:100px;">
		    <ul id="tt" class="easyui-tree">   
	            <li>   
	                <span ><a href="javascript:addTab('我的日志','MyLog_CY.jsp?userId=${user.userId }')">我的日志</a></span>   
	            </li> 
	            <li>   
	                <span ><a href="javascript:addTab('查看日志','seeOtherLog.jsp?userId=${user.userId }')">查看日志</a></span>   
	            </li>   
			</ul>
	    </div>   
	    <div id="center" class="easyui-tabs" data-options="region:'center'"></div>   
		
	</body>
</html>